package news.biz;

import news.dao.NewsDAO;
import news.entity.News;

/**
 * 新闻类的业务逻辑类
 * @author Administrator
 *
 */
public class NewsBiz {
	private NewsDAO newsDAO;
	/**
	 * 发布新闻
	 * @param news
	 */
	public boolean addNews(News news) {
		return newsDAO().relaseNews( news );
	}

	public NewsDAO newsDAO() {
		if ( newsDAO == null ) {
			newsDAO = new NewsDAO();
		}
		return newsDAO;
	}
}
